import request from '@/utils/request'

// 获取电量统计数据
export function getElectricityStatistics() {
  return request({
    url: '/apartment/record/statistics',
    method: 'get'
  })
}

// 获取电量趋势数据
export function getElectricityTrend(params) {
  return request({
    url: '/apartment/record/trend',
    method: 'get',
    params
  })
}

export default {
  getElectricityStatistics,
  getElectricityTrend
} 